const modulesFiles = require.context("@/pages", true, /api\.js$/);
const modules = {};
modulesFiles.keys().map((key) => {
  const keys = key.replace(/(\.\/|\.js)/g, "");
  modules[keys.split("/")[0]] = {
    ...modulesFiles(key).default,
  };
});
export default {
  //公共接口地址
  searchAll: "/abc/{id}/{id2}",
  //页面接口地址
  ...modules,
};
